package com.uid.dao;

import com.uid.model.UniqueIdSequence;
import com.baomidou.mybatisplus.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Arnold Yang
 * @since 2018-02-21
 */
public interface IUniqueIdSequenceDao extends BaseMapper<UniqueIdSequence> {

  /**
   * 根据type生产唯一id
   * @param uid
   * @return
   * @throws Exception
   */
  long replaceInto(UniqueIdSequence uid) throws Exception;

}
